package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：开户行
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    开户行
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_SYS_EJZH")
@Where(clause = "deleted!='1'")
public class Ejzh extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqEjzh", allocationSize = 1, sequenceName = "SEQ_SYS_EJZH")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqEjzh")
    private Long id;

    /**
     * 二级账户全称
     */
    private String qc;

    /**
     * 二级账户简称
     */
    private String jc;

    /**
     * 二级账户帐号
     */
    private String zh;

    /**
     * 账户余额
     */
    private Double ye=0.0;

    /**
     * 可用余额
     */
    private Double kyye=0.0;



    /**
     * 内部公司
     */
    @ManyToOne
    @JoinColumn(name = "NBGS_ID")
    private Nbgs nbgs;

    /**
     * 客户
     */
    @ManyToOne
    @JoinColumn(name = "KH_ID")
    private Gsjg kh;


    /**
     * 开户行
     */
    @ManyToOne
    @JoinColumn(name = "KHH_ID")
    private Khh khh;

    /**
     * 授信额
     */
    private Double sxe;

    /**
     * 保证金
     */
    private Double bzj = 0.0;


    @Version
    private Long version;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getQc() {
        return qc;
    }

    public void setQc(String qc) {
        this.qc = qc;
    }

    public String getJc() {
        return jc;
    }

    public void setJc(String jc) {
        this.jc = jc;
    }

    public Double getYe() {
        return ye;
    }

    public void setYe(Double ye) {
        this.ye = ye;
    }

    public Double getKyye() {
        return kyye;
    }

    public void setKyye(Double kyye) {
        this.kyye = kyye;
    }

    public Gsjg getKh() {
        return kh;
    }

    public void setKh(Gsjg kh) {
        this.kh = kh;
    }

    public Nbgs getNbgs() {
        return nbgs;
    }

    public void setNbgs(Nbgs nbgs) {
        this.nbgs = nbgs;
    }

    public Khh getKhh() {
        return khh;
    }

    public void setKhh(Khh khh) {
        this.khh = khh;
    }

    public String getZh() {
        return zh;
    }

    public void setZh(String zh) {
        this.zh = zh;
    }



    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Double getSxe() {
        return sxe;
    }

    public void setSxe(Double sxe) {
        this.sxe = sxe;
    }

    public Double getBzj() {
        return bzj;
    }

    public void setBzj(Double bzj) {
        this.bzj = bzj;
    }
}
